package com.future.shiro.service.impl;

import com.future.shiro.mapper.UserMapper;
import com.future.shiro.model.User;
import com.future.shiro.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author yinhao
 * @Date 2021/3/29 11:33
 * @Description
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User findByUserName(String username) {
        return userMapper.findByUserName(username);
    }
}
